<div id="doccentre-upload-form">

	<?php 
		if (isset($result))
		{
			switch ($result)
			{
				case 'success':
					echo '<div class="alert success"> <p>';
					echo __('Your document was uploaded successfully, thank you!');
					echo '</p> </div>';
				break;
					
				case 'failure':
					echo '<div class="alert fail"> <p>';
					echo __('Your document failed to upload. Please try again or check '
						.'with your system administrator.');
					echo '</p> </div>';
				break;
			}
		}
	?>
	
	<form action="<?php echo $form_action; ?>" enctype="multipart/form-data" method="post">
		
		<label for="document"><?php echo __('Please select the document you wish to upload.'); ?></label>
		<input type="file" name="document" />
		
		<?php wp_nonce_field('doccentre-upload'); ?>
		
		<button type="submit" name="senddoc">
			<?php echo __('Upload Document'); ?>
		</button>
		
	</form>
	
</div>